package com.jpm.jrogue.graphics
{
	import starling.display.Image;
	
	/**
	 * ...
	 * @author Jonboy
	 */
	public class Tile
	{
		public var base:String, terrain:String, object:String;
		public var baseImage:Image, terrainImage:Image, objectImage:Image;
		public var xPos:int, yPos:int;
		public var drawn:Boolean;
		public var isLand:Boolean;
		public var isWater:Boolean;
		
		public function Tile(xPos:int, yPos:int)
		{
			this.xPos = xPos;
			this.yPos = yPos;
		}
		
		public function get isPassable():Boolean
		{
			return (isLand && object == null);
		}

	}
}